<?php

$route->any('clear/cache', 'InitController@clearCache');
$route->any('init/cache', 'InitController@initCache');
$route->any('test', 'InitController@test');

$route->any('switch', 'InitController@switch');

$route->any('login', 'AuthController@login')->name('api.user.login');
//初始化
$route->get('init/param', 'InitController@param')->name('api.init.param');

//详情页
$route->get('appoint/info', 'AppointController@info')->name('api.appoint.info');

//礼物列表
$route->get('gift/index', 'GiftController@index')->name('api.gift.index');

$route->any('category/index', 'CategoryController@index');


//列表
$route->get('appoint/index', 'AppointController@index')->name('api.appoint.index');


//product
$route->get('product/index', 'ProductController@index');
$route->get('product/info', 'ProductController@info');


$route->group(['middleware' => 'api.auth'], function ($route) {
    //预约
    $route->post('appoint/store', 'AppointController@store')->name('api.appoint.store');
    //送礼
    $route->post('gift/store', 'GiftController@store')->name('api.gift.store');
});
